#!/usr/bin/env pytho
# -*- coding: utf-8 -*-
#多重继承的顺序
# class Foo(object):
#     def say(self):
#         print('in say')
#     def run(self):
#         print('run in','111')
#
# class Bar(object):
#     def eat(self):
#         print('in eat')
#     def run(self):
#         print('run in','222')
#
# class Bar(Bar,Foo):   #执行的方法顺序，谁在前就先执行谁
#     pass
# b = Bar()
# b.run()
# print(Bar.__mro__)



#左右遍历
class Node(object):
    def __init__(self, value, left=None, right=None):
        self.value = value    #
        self.left = left      #左
        self.right = right    #右


